﻿using System;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using YJKSparseDistance.ControlLayer;
using YJKInspectModelFunc;

namespace YJKSparseDistance
{
	[Transaction(TransactionMode.Manual)]
	internal class CmdEvacuationDistanceCheck : IExternalCommand
	{
		public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
		{
            if (!YJKInspectModelFunc.Utility.IfEnvironmentCanUse(commandData))
			{
				return Autodesk.Revit.UI.Result.Succeeded;
			}
			new TempleCmd().Execute(commandData, ref message, elements);
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
